package com.edu.mapper;

import com.edu.bean.Book;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BookMapper {


    List<Book> selectBook(@Param("book") Book book);

    int updateBook(@Param("book") Book book);

    List<Book> selectBook2(@Param("book") Book book);

    List<Book> selectBookByNames(@Param("names") List<String> bookNames);

    int insertBooks(@Param("books") List<Book> books);

    List<Book> selectBookByName(String bookName);
}
